﻿using RS.Logger;
using System;
using System.Text;
using System.Web.Optimization;

namespace TimeManagementMobile.BundleTransforms
{
    public class CopyrightBundleTransform : IBundleTransform
    {
        public void Process(BundleContext context, BundleResponse response)
        {
            try
            {
                var sb = new StringBuilder();
                sb.AppendLine("/*Copyright Romanian Software 2014. All rights reserved.*/");
                sb.Append(response.Content);
                response.Content = sb.ToString();
            }
            catch (Exception ex)
            {
                Log.Error(ex);
            }
        }
    }
}